<?php
class Admin_Form_Category extends Zend_Form
{
	public function init()
	{
		$this->setName("category");
		$this->setMethod("POST");

		$idCat = new Zend_Form_Element_Hidden('idCat');
		$idCat->addFilter('Int');
			
			 
	    $NameCat= new Zend_Form_Element_Text('NameCat');
	    $NameCat->setLabel("LoaiSanPham")
	    		->setRequired(true)
	    		->addFilter('StripTags')
	    		->addFilter("StringTrim")
	    		->addValidator('NotEmpty');
	    $idSes= new Zend_Form_Element_Text('idSes');
	    $idSes->setLabel("idTL")
	    	  ->addFilter('Int');
	    
	    
	    $keyWord= new Zend_Form_Element_Text("keyWord");
	    $keyWord->setLabel("KeyWord");
	    $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitcat');
        	   
	    $this->addElements(array( $idCat,$NameCat,$idSes,$keyWord,$submit ));	  		
		
	}
}